package com.lili.collection.jdbc.enums;

import com.lili.collection.core.support.LabelSupport;

/**
 * @author lili
 * @description TODO
 * @date 2023/2/15 0:26
 */
public enum TransactionIsolationLevel implements LabelSupport {
    DEFAULT("默认"),
    TRANSACTION_READ_COMMITTED("不可重复读"),
    TRANSACTION_READ_UNCOMMITTED("读未提交"),
    TRANSACTION_REPEATABLE_READ("可重复读"),
    TRANSACTION_SERIALIZABLE("串行化"),
    ;

    private String label;

    TransactionIsolationLevel(String label) {
        this.label = label;
    }

    @Override
    public String getLabel() {
        return label;
    }
}
